<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" isELIgnored="false"%>
<%@ include file="/pages/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<div style='margin-top: 10px'>
	<img alt="" src="${ctx }/pages/templete/images2/loading14.gif">
</div>

	<form action="
        <c:choose>
    <c:when test="${sessionScope.gopay_webtest_URL_Name=='自定义'}">
    ${sessionScope.gopay_webtest_URL.dom}
    </c:when>
    <c:otherwise>
		${sessionScope.gopay_webtest_URL.dom}${sessionScope.gopay_webtest_URL.apply}
		    </c:otherwise>
    </c:choose>"  name="returnfunc" id= "returnfunc" method="POST">
	<%-- 	<input type="hidden" id="url" name="url"
					value="${payinfo.url}" size="50" /> --%>
		<input type="hidden" id="gopayFeeAmt" name="gopayFeeAmt"
					value="${payinfo.gopayFeeAmt}" size="50" />
		<input  type="hidden"  id="tranCode" name="tranCode" value="${payinfo.tranCode}" size="50"/>
		<input type="hidden"  id="merchantID" name="merchantID" value="${payinfo.merchantID}" size="50"/>
		<input type="hidden"  id="merOrderNum" name="merOrderNum" value="${payinfo.merOrderNum}" size="50"/>
		<input type="hidden"  id="tranAmt" name="tranAmt" value="${payinfo.tranAmt}" size="50"/>
		<input type="hidden"  id="mercFeeAmt" name="mercFeeAmt" value="${payinfo.mercFeeAmt}" size="50"/>
		<input type="hidden"  id="gopayServerTime" name="gopayServerTime" value="${payinfo.gopayServerTime}" size="50"/>
		<input type="hidden"  id="authID" name="authID" value="${payinfo.authID}" size="50"/>
		<input type="hidden"  id="currencyType" name="currencyType" value="${payinfo.currencyType}" size="50"/>
		<input type="hidden"  id="tranDateTime" name="tranDateTime" value="${payinfo.tranDateTime}" size="50"/>
		<input type="hidden"  id="virCardNoIn" name="virCardNoIn" value="${payinfo.virCardNoIn}" size="50"/>
		<input type="hidden"  id="tranIP" name="tranIP" value="${payinfo.tranIP}" size="50"/>
		<input type="hidden"   id="bankCode" name="bankCode" value="${payinfo.bankCode}" size="50"/>
		<input type="hidden"   id="userType" name="userType" value="${payinfo.userType}" size="50"/>
		<input type="hidden"   id="merchantEncode" name="merchantEncode" value="${payinfo.merchantEncode}" size="50"/> 
		<input type="hidden"   id="signValue" name="signValue" value="${payinfo.signValue}" size="50"/>
		<input type="hidden"   id="version" name="version" value="${payinfo.version}" size="50"/>
		<br />
		<input type="hidden"   id="charset" name="charset" value="${payinfo.charset}" size="50"/>
		<input type="hidden"   id="language" name="language" value="${payinfo.language}" size="50"/>
		<input type="hidden"   id="signType" name="signType" value="${payinfo.signType}" size="50"/>
		<input type="hidden"   id="backgroundMerUrl" name="backgroundMerUrl" value="${payinfo.backgroundMerUrl}" size="50"/>
		<input type="hidden"   id="frontMerUrl" name="frontMerUrl" value="${payinfo.frontMerUrl}" size="50"/>
		<input type="hidden"   id="goodsName" name="goodsName" value="${payinfo.goodsName}" size="50"/>
		<input type="hidden"   id="goodsDetail" name="goodsDetail" value="${payinfo.goodsDetail}" size="50"/>
		<input type="hidden"   id="merRemark1" name="merRemark1" value="${payinfo.merRemark1}" size="50"/>
		<input type="hidden"   id="merRemark2" name="merRemark2" value="${payinfo.merRemark2}" size="50"/>
		<input type="hidden"   id="buyerName" name="buyerName" value="${payinfo.buyerName}" size="50"/>
		<input type="hidden"   id="buyerContact" name="buyerContact" value="${payinfo.buyerContact}" size="50"/>
		<input type="hidden"   id="remark" name="remark" value="${payinfo.remark}" size="50"/>
		<input type="hidden"   id="isRepeatSubmit" name="isRepeatSubmit" value="${payinfo.isRepeatSubmit}" size="50"/>
		<input type="hidden"   id="VerficationCode" name="VerficationCode" value="${payinfo.verficationCode}" size="50"/> 
		
	</form>
	
	<script>
<%-- 为了防止用户登录后点击提交后退到登录页面，对document.returnfunc.submit()增加判断条件if(0==history.length) --%>

if($.browser.msie) {
	if(0==history.length)document.returnfunc.submit();
}else if($.browser.mozilla){
	if(1==history.length)document.returnfunc.submit();
}else if($.browser.opera) {
	if(1==history.length)document.returnfunc.submit();
}else{//for webkit(Safari, Chrome...)
	if(1==history.length)document.returnfunc.submit();
} 
</script> 
